View Full Version : How do I make a standard links Module ?
Alderwazeh
03-13-2005, 03:09 AM
The attached screenshot is what we all see at the main VBA page ...links to our most favoriat sites such as VBA ..VB...VBorg ..as a good example for everybdy how can we do that having the fact that everybody has his own links .. I want the standard module please ?
Thanks
Brian
03-13-2005, 11:01 AM
Just add a new template with the content you would like, then add a new module using the new template you created. If you haven't already, you may want to have a look at the users' manual available in the members' area here.
Alderwazeh
03-13-2005, 06:22 PM
Thanks a lot Brian ..got it
and to explain it for others as an example ..
1. Create CMPS template say for example ..adv_portal_links
2. Add this code to your templates
<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] <!-- Module Title Here --></strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<!-- Content for your module goes here -->
</td>
</tr>
</table>
<br /
3. In the red font is where you add your block title "module title" say Favorite Links ... where in the second red font where you add your links ..simply use frontpage to do that and cut the code and put it there.
4.Save your template
5.Create a new module as usual using this template.
Thanks for Brian
thenewuser
03-13-2005, 06:44 PM
I'm a bit confused how I make a CMPS template. Is this a php file I create?
Brian
03-13-2005, 07:41 PM
Admin CP => Style Manager => Add Template.
thenewuser
03-14-2005, 12:11 AM
I'm sorry do you have a link to a place I can learn php, I thought the modules would be html based..
All I want is a module that says:
Games:
Game 1
Game 2
Game 3
But I can't seem to get it to work. :P
The red text shown above: <!-- Content for your module goes here --> is where you will put your normal html links.
thenewuser
03-14-2005, 12:25 AM
Ahh thank you, I still do not see the module, it doesn't load on the main page. The active radio button is set to "yes". I've given the module a title, the template to include, and all users can view it. What am I doing wrong now? lol
Thanks for all the help. :)
sapper6fd
03-14-2005, 04:41 AM
Step 1 - Create a new template with the code you want to use by going to Admin CP => Style Manager => Add Template. Title it adv_portal_insertnamehere. (IE adv_portal_games)
Step 2 Enter the code you want to use in the Template Box
Step 3 Go to Admin CP => vBa CMPS => Add Module. Give the module a name (IE Games)
Step 4 Module Identifier: Leave Blank.
Step 5: File To Include: Leave as is.
Step 6: OR Template to Include: - If you neamed your template adv_portal_games, type Games.
Step 7: Active: "Yes" to activate the module.
Step 8: Display Order: Select a column
Step 9: Templates Used: adv_portal_games (Replace with template name)
Step 10: Select who you want to have access to the module
Step 11: click Save.
Go back to your homepage, and there it is.
thenewuser
03-14-2005, 04:46 AM
Thank you sir, I shall try this now. :)
thenewuser
03-14-2005, 04:54 AM
Hrm I just did what you did step by step here:
http://www.powerlevel.org/
This is my template code
<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] <!-- Games></strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
Everquest 2<br>
Lineage 2<br>
Star Wars Galaxies<br>
World of Warcraft<br>
</td>
</tr>
</table>
<br /
I still can not get it to show. (Yes I stole Brian's avatar, just for now, I'll take trunks off when I fix the avatar size. ;) )
Alderwazeh
03-14-2005, 08:08 AM
go to frontpage ... put your what ever games you want .. the design .. the style ..and insert links in the design area.. after you became satisfied with that .. go to the code area.."html' in the frontpage and get that code and past it to the area that said in red ..." put your content here"
===
And to give you a fresh example .. I just finshed doing this module as you can see at the attcahed screenshot ..what I did is as folows:
1. I create CMPS template by going to my control panel and to the style manager and to the parent style .. go to the option ..add new template.. a new window will open and you should put their a title for the template say ...adv_portal_links..
2. I put the following code in this template and then save it.
<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] مواقع دعـم الدروازه</strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<meta http-equiv="Content-Language" content="en-us">
<div align="left">
<address>
<u><font face="Arial" size="1"><a href="http://www.vbadvanced.com">
Vbadvanced.com</a></font></u></address>
</div>
<div align="left">
<address>
<u><a href="http://www.vbulletin.com"><font size="1">Vbulletin.com</font></a></u></address>
</div>
<div align="left">
<address>
<u><a href="http://www.vbulletin.org"><font size="1">Vbulletin.org</font></a></u></address>
</div>
<div align="left">
<address>
<font face="Arial" size="1"><a href="http://www.vbulletintemplates.com">
Vbulletin Templates</a></font></address>
</div>
<div align="left">
<address>
<a href="http://www.theadminzone.com/forums/index.php?referrerid=1823">
<font face="Arial" size="1">The Admin Zone</font></a></address>
</div>
<div align="left">
<address>
<a href="http://www.big-boards.com"><font face="Arial" size="1">Big
Borads</font></a></address>
</div>
<p> </p> </td>
</tr>
</table>
<br />
3. The red statment = "<--Put your module title here--> and "<--Put your content here-->
4. the content as I explain I made it in the frontpage and I picked the code from there and put it here..
5. I create a CMPS module and called it "Technical support" ...I left the module id and file .. untouched .. I go to the " or template" and put only the word "links" ..then I activate my module .. give it a number where it should be among other modules ... and also centere it right .. center .. or left.. I chosed left ..
Then I save the module and went to the CMPS page and found the attache module ... the screenshot..
This was my story last night.. :D ;)
GL
thenewuser
03-14-2005, 09:05 AM
Oh dear, thanks for the long write up. :) Let me read all of this hehe. ;)
SasukeNC
03-19-2005, 02:41 AM
I've tried this 5 times and IT DOES NOT WORK!
Boosted MR-S
03-19-2005, 10:13 PM
http://www.vbadvanced.com/forum/showthread.php?p=37047#post37047
Check that thread out.
HeadRat
03-20-2005, 03:58 AM
Everything worked for me the first time, thanks for the step by step coding instructions, just one question, what is the code I can enter to make the links open in another window when clicked?
Boosted MR-S
03-20-2005, 06:31 AM
<a target="_blank" href="LINK URL">LINK NAME</a>
dagaz
03-20-2005, 11:55 AM
Worked a treat, thanks.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.