PDA

View Full Version : Pulling from four different forums?


hddeals.net
10-21-2007, 02:32 PM
I want to create four forums and pull news from each of them individually and display them on the front page with their own style applied, i.e. one light blue, one maroon, one black and one lime green.

I am new to VBa but I have used VBulletin for ages. I am just trying to figure out how to do this, I copied the news.php module and set it to pull from a different forum to the existing one, but it would only display one?!

Im confused. Also I would like to remove the tcat_2 image from the news posts and make the title of the information bigger. I had a look and i cant see an easy way to mess with the style of the content its pulling to the front page?

Sorry, lots of questions, I know what i wanna do but maybe I am too stupid for it ;)

Brian
10-22-2007, 01:26 PM
I am new to VBa but I have used VBulletin for ages. I am just trying to figure out how to do this, I copied the news.php module and set it to pull from a different forum to the existing one, but it would only display one?!

How exactly did you copy the module? If you used the 'Copy Module' tool from the Admin CP then all you should have to do after copying it is change your settings and activate it on a page.

m confused. Also I would like to remove the tcat_2 image from the news posts and make the title of the information bigger. I had a look and i cant see an easy way to mess with the style of the content its pulling to the front page?

The title for all default modules is located in the 'adv_portal_module_wrapper' template. To change the code for just one module, you would need to use an <if condition> like this:
<if condition="$mods['modid'] == X">
Code for special module here
<else />
Regular code for the rest of your modules here
</if>

(change X there to the modid for your news module)

Our Sponsors
 

hddeals.net
10-22-2007, 01:31 PM
How exactly did you copy the module? If you used the 'Copy Module' tool from the Admin CP then all you should have to do after copying it is change your settings and activate it on a page.

Thats what I did but for some reason the first instance of news.php seemed to stop the second one, I will have another go and report back.

The title for all default modules is located in the 'adv_portal_module_wrapper' template. To change the code for just one module, you would need to use an <if condition> like this:
<if condition="$mods['modid'] == X">
Code for special module here
<else />
Regular code for the rest of your modules here
</if>

(change X there to the modid for your news module)

Durrrr I should have realised it was going to be in the template style, looking at it now, really appreciate you taking the time to reply.