PDA

View Full Version : How can I add custom things?


DarknessDivine
06-04-2004, 05:46 PM
How can I add things to my CMPS? Like the frontpage, let's say that I want to type in a welcome that I don't want removed in the center of the page above my News section, how do I do that? :)

Porthos
06-04-2004, 05:49 PM
Well you would make a template adv_portal_templatenamehere and put what you want for a greating and make a module in your cmps cp and you're all set.

Our Sponsors
 

Brian
06-04-2004, 06:40 PM
http://vbadvanced.com/membersarea.php?do=viewmanual&productid=4 ;)

DarknessDivine
06-04-2004, 06:50 PM
Can I add drop down menus and such as well?

Our Sponsors
 

DarknessDivine
06-04-2004, 06:52 PM
ooops didn't see your post before I posted Brian..sorry..lol..I'll figure it all out and quit bothering you all soon enough..
Maybe...:)

Brian
06-04-2004, 07:21 PM
LOL! It's no problem at all. :)

DarknessDivine
06-04-2004, 07:27 PM
Okay sorry here I go again...I got the template and everything just fine and showing up great. The only thing I need is that my template is actually just a welcome paragraph and I was wondering if I can include html or other codes while doing the template? Also how do I get the new template to break from the one below it, it's sort of touching the top of my news section and almost looks like it's running into it.

Brian
06-04-2004, 07:34 PM
Yes, you simply add the HTML code in the template. If you would like a generic 'box' (like all the modules are contained in), there's one available for quick use here (http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=5#generictemp). As for making it break from the template below, simply add a <br /> tag. ;)

DarknessDivine
06-04-2004, 07:50 PM
Okay I just want to say Thanks so MUCH!..Everything looks and works great...! Brians has been a HUGE help and I couldn't have done it without him. Whoever says the support here sucks is crazy, I'm a very impatient person and yet when I had a problem about anything today it was answered quickly.

NexVision
06-05-2004, 06:35 PM
if you add something how do you later remove it

Merjawy
06-05-2004, 08:02 PM
Does this mean only HTML can be entered? or can PHP be used also?

Brian
06-05-2004, 08:34 PM
NexVision - There is an option to delete a module when you edit it. ;)

Merjawy - You can use vBulletin's <if condition=""> statements in the template, but php code would have to be processed through a file.

Merjawy
06-06-2004, 01:22 AM
Thanks Brian

Da Lynched 1
06-08-2004, 02:49 AM
Me, I'm a dolt... I wanted to add a module that pulls the first post from an additional thread but I ahve absolutely no clue how to do it, anyone mind pointing me in the right direction?

sgwht
06-08-2004, 10:21 PM
I had created the module but it is show as 'Inactive" in my AdminCP

Code as follows :

links.php (Module)
<?php
eval('$home[$mods[\'modid\']][\'content\'] .= "' .
fetch_template('adv_portal_links') . '";');

?>

adv_portal_links (Template)
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Links
<!-- Links --></strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">

<!-- Content for your module goes here -->
<a href="/forums">Forums</a><br />

</td>
</tr>
</table>
<br />

NexVision
06-09-2004, 01:35 PM
maybe its just me but I dont see the option to delete only to make inactive.

NexVision - There is an option to delete a module when you edit it. ;)

Brian
06-09-2004, 02:03 PM
sgwht - Edit the module, and make sure that the 'Active' option is set to yes.

NexVision - The button is at the top of the page whenever you edit the module, with the exception of the 'Custom Page Content' one, which there is no option to delete.

sgwht
06-11-2004, 07:15 PM
sgwht - Edit the module, and make sure that the 'Active' option is set to yes.




Thanks for the great help

Merjawy
06-11-2004, 09:41 PM
maybe its just me but I dont see the option to delete only to make inactive.

Its you :)


From vBa CMPS menu, you click on Edit Module, then you click on the Module in question .......

theres a Remove button there look at attachment

diades
06-30-2004, 05:33 AM
Its you :)


From vBa CMPS menu, you click on Edit Module, then you click on the Module in question .......

theres a Remove button there look at attachment
Not on mine there isnt???http://www.webxpertz.net/diades/module.gif
I also have a situation where the form was submitted without the module title being added, it shows up on the panel but there is no way to edit it as it cannot be selected. Could some validation be added to ensure that fields that are required for operations are filled in?

DarknessDivine
06-30-2004, 11:09 AM
Well something isn't right then..it should be there..It's on mine even. I'd send Brian a ticket so he can check into it, maybe you didn't get a complete install or something?

diades
06-30-2004, 11:25 AM
Hi Drakness Divine

It is there for normal modules but, the example above shows that it is a "page" and that cannot be removed as far as I can see.

Brian
06-30-2004, 12:09 PM
The button is at the top of the page whenever you edit the module, with the exception of the 'Custom Page Content' one, which there is no option to delete.