PDA

View Full Version : Two Queries


Salva87
09-24-2007, 05:18 PM
Hi, I've been looking all around the forum and I haven't found the answer to my questions.

1. How can I create a new variable so that I can put a member's avatar wherever I want inside the vbadvanced main page? A block which says something like:

Welcome, X
[Avatar]
Options..

if I just fit in $avatar , it won't work

2. How can I make a bar which says Members: X | Threads: X | Posts: X without using the typical statistics block of vbadvanced? It's the same problem of variables...

See if you can help me please!

Cheers!

Brian
09-25-2007, 10:56 AM
1). Why not just use the Welcome Block module instead? There's not really just a set variable you can use to display the avatar.

2). Pretty much the same as number 1; The variables are not going to work outside of the module. If you don't like the look of that module then it can be changed by modifying the templates.

Our Sponsors
 

Salva87
09-25-2007, 04:36 PM
1). Why not just use the Welcome Block module instead? There's not really just a set variable you can use to display the avatar.

2). Pretty much the same as number 1; The variables are not going to work outside of the module. If you don't like the look of that module then it can be changed by modifying the templates.

Thanks Brian, I'm trying to do so. However, how can a remove the headings? The templates start with <tr> and omit the heading. I suppose that heading is somewhere else and includes ALL of the modules, but I would mind removing it from all of them. Could you please tell me how to take it please?

Cheers ;)

Brian
09-26-2007, 12:55 PM
The heading for each module can be modified by editing your 'adv_portal_module_wapper' template.

Our Sponsors
 

Salva87
09-26-2007, 07:51 PM
The heading for each module can be modified by editing your 'adv_portal_module_wapper' template.

Ok, I couldn't find it.

So, it worked to a point because I want to put:

Members: X (Online: X) so online and members aren't in the same template and it therefore won't work (because online is in adv_portal_onlineusers) and the same with Links: X, with adv_links_whatever.

How can I put them all together into stats.php?

Cheers ;)

Brian
09-27-2007, 01:40 PM
That would require a bit of work and knowledge of PHP to combine the module files into one.

Salva87
09-27-2007, 05:18 PM
That would require a bit of work and knowledge of PHP to combine the module files into one.

Could you quickly explain it please? I have knowledge on PHP, not a huge knowledge but well...

The problem is that I don't understand how the variables work in vbulletin and vbadvanced inside the admincp, but it's a matter on somebody telling me a brief explanation :rolleyes:

Cheers ;)