PDA

View Full Version : Adding Link In AdminCP?


Whiterook
12-16-2007, 01:48 PM
Hello All,
I'm wondering if anyone can lend a hand. In previous versions of vB I could add a link next to the ones shown in the image below. Since the upgrade I can't find where to add it.

Does anyone have any ideas?

http://img260.imageshack.us/img260/655/001wk4.jpg

Whiterook
12-17-2007, 02:20 PM
Nobody has a clue?

C.ooder
12-18-2007, 01:19 AM
Hello

try go to Languages & Phrases >> Search in Phrases

and search thes

forum_home_page

Edit

and try add what you want

Whiterook
12-18-2007, 09:04 PM
No luck C.ooder.
"Does not match":(



I can view the page source for the links (as follows)

<table border="0" width="100%" height="100%">
<tr align="center" valign="top">

<td style="text-align:left"><a href="http://www.vbulletin.com/" target="_blank"><b>Admin Control Panel</b> (vBulletin 3.6.8 Patch Level 2<img src="http://version.vbulletin.com/version.gif?v=368&amp;id=L544280f" width="1" height="1" border="0" alt="" style="visibility:hidden" />)</a></td>
<td><a href="http://members.vbulletin.com/" id="head_version_link" target="_blank">&nbsp;</a></td>
<td style="white-space:nowrap; text-align:right; font-weight:bold">
<a href="../index.php" target="_blank">Forum Home Page</a>
|
<a href="index.php?do=cplogout" onclick="return confirm('Are you sure you want to log out of the control panel?');" target="_top">Log Out</a>

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

Where do I find the html page that contains this?
The header on the "view page source" reads: admincp/index.php?do=head
I've looked in the admincp index.php. but that only makes references to other .php's. I'm looking for the html.
Any clue?

Thanks again,
WR

vB Crew
12-19-2007, 12:56 PM
When you click on the text "Forum Home Page" next to your arrow, it takes you to your home page. Are you trying to get to your index page?

Whiterook
12-20-2007, 04:45 AM
When you click on the text "Forum Home Page" next to your arrow, it takes you to your home page. Are you trying to get to your index page?
Yes.... I believe that is the place. The link shown next to the arrow takes me to "XYZ.com/forums/index.php" I would like a link to "XYZ.com".

As I stated previously, I had placed this link there before the upgrade... but have forgotten where I added it.... (gray matter suffering, or the vB scripts have changed... Hope it's the later)

Thanks vB Crew... Hope this can be resolved. I'll keep looking though :)

vB Crew
12-20-2007, 09:21 AM
This is in the index.php file in the admincp folder. Give a shout if you need help adding the link.

Whiterook
12-20-2007, 09:33 PM
Thanks for the help vBCrew .... I added the phrase as suggested in your PM. Worked like a charm

vB Crew
12-20-2007, 10:53 PM
Here is what I did for whiterook. I edited the admincp/index.php file.

I added this

<a href="http://www.hissite.com/<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target="_blank"><?php echo $vbphrase['re_home']; ?></a>
|
above

<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
|

Now there is a "Home" link to the home page, next to the "Forum Home Page" link to the forum index page.

Then I had whiterook create the new phrase.