vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

SupremeWeapon 04-19-2006 11:40 PM

k, installed. uploads perfectly. now when the newly uploaded file is created it links to

local_links.php?action=jump&id=1&catid=2

and that gives page snot found errors.

any ideas?

edit happens with site links to.

AndrewD 04-20-2006 04:09 AM

Quote:

Originally Posted by SupremeWeapon
k, installed. uploads perfectly. now when the newly uploaded file is created it links to

local_links.php?action=jump&id=1&catid=2

and that gives page snot found errors.


any ideas?


edit happens with site links to.

Sorry, I need a bit more information. The link local_links.php?action=jump&id=1&catid=2
is the usual url that LDM uses to give access (you've created two categories, and this is the first entry you've put in the database...)

Just to be clear, the problem is happening with an upload? Just this one, or any upload? Do things work ok when you create entries which point to urls rather than being uploads?

If you want me to take a look at your site, send me a PM with an admin username and password to your board.

Akagi 04-20-2006 05:21 AM

Andrew, just wanna tell you that the new version works great. upgraded successfully from 2.1.2b and it's working great now! many thanks!

hoping to see the vbbux integration in your new version if you're working on one.

Tyegurl 04-20-2006 02:01 PM

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT * FROM local_linksdownloads
WHERE linkid='602' AND userid='1' AND usertime>'1145545114'
LIMIT 1;

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Thursday, April 20th 2006 @ 07:59:27 AM
Script : http://www.teamrespawn.com/vBulletin...d=602&catid=30
Referrer :
IP Address :
Username : Tyegurl
Classname : vb_database

this happens from the jukebox media only.....i get 50-60 emails and i have it set to 0 for timeout....

AndrewD 04-20-2006 09:53 PM

Quote:

Originally Posted by Tyegurl
Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT * FROM local_linksdownloads
WHERE linkid='602' AND userid='1' AND usertime>'1145545114'
LIMIT 1;

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Thursday, April 20th 2006 @ 07:59:27 AM
Script : http://www.teamrespawn.com/vBulletin...d=602&catid=30
Referrer :
IP Address :
Username : Tyegurl
Classname : vb_database

this happens from the jukebox media only.....i get 50-60 emails and i have it set to 0 for timeout....

I can't recall - have you given me an account on your board with admin privs? I need to take a look behind the scenes. Send me a PM.

Tyegurl 04-20-2006 09:59 PM

okay sending now and changing perms

AndrewD 04-21-2006 09:50 AM

Quote:

Originally Posted by Tyegurl
okay sending now and changing perms

I took a look - I can't see anything wrong, although I notice that you have still got the pre-release 2.2.0 version of LDM installed. I made a small change to the relevant code in the final release to try to correct your problem. Can you upload and install that (the particular change is in the file include/local_links.misc.php)

Let me know if you still get this problem.

Tyegurl 04-21-2006 01:18 PM

oops...i went and looked at the versions and i thought i did....uploading now....must have missed an update sorry.

updated....

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT COUNT(linkid) AS hits
FROM local_linksdownloads
WHERE linkid='608'
AND userid='1'
AND usertime>'1145629606';

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Friday, April 21st 2006 @ 07:27:24 AM
Script : http://www.teamrespawn.com/vBulletin...d=608&catid=30
Referrer :
IP Address :
Username : Tyegurl
Classname : vb_database

no connection loss...loaded and played just fine....

Tyegurl 04-21-2006 09:51 PM

Quote:

Originally Posted by AndrewD
Having a progress bar with uploads is a real pain to get to work correctly.

With downloads, there are also some funny tricks that one has to watch out for, so if it's ok, I'll simply put this on the list...

Thanks anyway

Well i changed a phrase, "$vbphrase[ll_pleasewait]", using one of Allan's mods.

I know you said you were adding it to the list and this works fine for now! At least I know my page isn't frozen or crashed now.

Streicher 04-23-2006 08:48 AM

When you set new categories have to be moderated and a member add a new category this category is instantly visible and acessable for guests via the drop down list.

And a second problem is, that no emails are send to the administrator if a new link/category is submitted, that must moderated.

Marris 04-23-2006 03:17 PM

Thank you for your continued efforts developing LDM.

I'm just starting to test LDM again with the 2.2.0 release, so I'm not sure if this has already been implemented or not, but I would like to second the request for a copy/clone category function that includes child categories.

For example:

Item #1 - with the following sub-categories:
a) reviews
b) interviews
c) news

could be cloned to:

Item #2
a) reviews
b) interviews
c) news



Quote:

Originally Posted by shiva
Have another idea...

I have a lot of childs in each of my parent categories. How about the ability to clone a category, with all of its settings intact to use as a template. So we can have our descriptions/extended descriptions, use policy and the settings carry over, as well as display settings and permissions, and then it's a simple to edit any changes you want.


AndrewD 04-24-2006 01:00 PM

Quote:

Originally Posted by Tyegurl
oops...i went and looked at the versions and i thought i did....uploading now....must have missed an update sorry.

updated....

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT COUNT(linkid) AS hits
FROM local_linksdownloads
WHERE linkid='608'
AND userid='1'
AND usertime>'1145629606';

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Friday, April 21st 2006 @ 07:27:24 AM
Script : http://www.teamrespawn.com/vBulletin...d=608&catid=30
Referrer :
IP Address :
Username : Tyegurl
Classname : vb_database

no connection loss...loaded and played just fine....


OK, will continue to think about this.

AndrewD 04-24-2006 01:17 PM

Quote:

Originally Posted by Tyegurl
Well i changed a phrase, "$vbphrase[ll_pleasewait]", using one of Allan's mods.

I know you said you were adding it to the list and this works fine for now! At least I know my page isn't frozen or crashed now.

OK, I'd misunderstood your request - you're just looking to add an animated GIF. I thought you wanted the progress bar to be accurate! That's what's difficult to achieve.

Tyegurl 04-24-2006 01:38 PM

Quote:

Originally Posted by AndrewD
OK, I'd misunderstood your request - you're just looking to add an animated GIF. I thought you wanted the progress bar to be accurate! That's what's difficult to achieve.


nope lol and i noticed it doesn't work all the time....the bigger the file then it won't work lol but if i just add links or small files it works great...

odln018 04-24-2006 04:54 PM

I've got everything set up, but I'm not seeing any way to upload files, I double checked both file and usage permissions, and I'm stuck.

Any advice on things to check?

|oR|Greg 04-24-2006 05:16 PM

Andrew,

Just wanted to say thanks again for such a great hack with so much versatility. It's much appreciated.

Ok, so I had a question now that I've complimented you. :)

I noticed today that there is no variable set to disallow selection of what category a new link will be placed in.

For example, if users want to add a link it's required they be in a category that accepts links. However, if they go into a category that accepts links, they can then select any available category, even if it's closed. Not only is that a fairly large bug/problem, but I was also thinking that there should be a variable to disallow_cat_selection, where if you set it to yes, then whatever category the user is in, is the category that's getting the link. If it's set to no, then the user would get the edit box that they currently get with all the categories, however, the categories that are closed would be omitted from the list.

So I guess this isn't a question so much as a bug report and feature request.

AndrewD 04-24-2006 05:17 PM

Quote:

Originally Posted by odln018
I've got everything set up, but I'm not seeing any way to upload files, I double checked both file and usage permissions, and I'm stuck.

Any advice on things to check?

Have you enabled uploads, down the bottom of the LDM admin/settings page?

If uploads are enabled, then the 'Add Link' form will have a box on it for selecting the upload .

AndrewD 04-24-2006 05:23 PM

Quote:

Originally Posted by |oR|Greg
Andrew,

Just wanted to say thanks again for such a great hack with so much versatility. It's much appreciated.

Ok, so I had a question now that I've complimented you. :)

I noticed today that there is no variable set to disallow selection of what category a new link will be placed in.

For example, if users want to add a link it's required they be in a category that accepts links. However, if they go into a category that accepts links, they can then select any available category, even if it's closed. Not only is that a fairly large bug/problem, but I was also thinking that there should be a variable to disallow_cat_selection, where if you set it to yes, then whatever category the user is in, is the category that's getting the link. If it's set to no, then the user would get the edit box that they currently get with all the categories, however, the categories that are closed would be omitted from the list.

So I guess this isn't a question so much as a bug report and feature request.

Thanks for this - clearly a bug and also a useful feature - will check.

Tyegurl 04-24-2006 05:23 PM

have you set up a category to upload to? it won't allow you to upload from the "home" category...you need to create one.

odln018 04-24-2006 05:33 PM

Quote:

Originally Posted by AndrewD
Have you enabled uploads, down the bottom of the LDM admin/settings page?

If uploads are enabled, then the 'Add Link' form will have a box on it for selecting the upload .


Yes sir, uploads are enabled, directory has been defined, and directory has permissions for the web server user.

|oR|Greg 04-24-2006 05:41 PM

But have you setup a category in LDM yet?

odln018 04-24-2006 05:47 PM

Yep, have one category. I'll try to set another.

odln018 04-24-2006 05:48 PM

Quote:

Originally Posted by odln018
Yep, have one category. I'll try to set another.


That's odd, I defined a new category and the "Link" button popped up, my apologies for the firedrill

*** Update ***

I've got a few questions - Naturally.

1) How would I go about adding in images/banners to category descriptions?
2) I placed the cpnav_xlinks.xml into my /forums/includes/xml directory, yet I do not see an option in the VB ACP to access it. What have I done wrong here?
3) How can I get rid of "Submitted by", Date, hits, size, display order when viewing entries?

redlabour 04-24-2006 08:34 PM

Hi,

thx for this fine Hack but :

After the Update from 2.1.5 to 2.2.0 it tells me that Softwareversion is 2.2.0 and Database is still 2.1.5 .

And sure i have overwritten the Productfile.

What can i do ?

For the Moment i have manually edited the 2.1.5 to 2.2.0 with phpMyAdmin at line "admin". That works but i think there is nothing at Database changed.

AndrewD 04-24-2006 08:38 PM

Quote:

Originally Posted by redlabour
Hi,

thx for this fine Hack but :

After the Update from 2.1.5 to 2.2.0 it tells me that Softwareversion is 2.2.0 and Database is still 2.1.5 .

And sure i have overwritten the Productfile.

What can i do ?

For the Moment i have manually edited the 2.1.5 to 2.2.0 with phpMyAdmin at line "admin". That works but i think there is nothing at Database changed.

Easiest way to be sure is simply to tell the VB product installer to uninstall then reinstall. You won't lose anything.

AndrewD 04-24-2006 08:59 PM

Quote:

Originally Posted by odln018
That's odd, I defined a new category and the "Link" button popped up, my apologies for the firedrill

No problem. Perhaps the coding is too clever for its own good.

Quote:

Originally Posted by odln018
1) How would I go about adding in images/banners to category descriptions?

The easiest way to do this for banners is to use Vb codes e.g. the img code. For small icon images, you can try Edit Category/Display Settings/cat_icon and cat_icon_new


Quote:

Originally Posted by odln018
2) I placed the cpnav_xlinks.xml into my /forums/includes/xml directory, yet I do not see an option in the VB ACP to access it. What have I done wrong here?

Usually the Links and Download group appears close to the top of the list in the left hand column of the ACP. Sometimes I've noticed that you need to close all browser windows completely and restart before VB picks up these xml files.

Quote:

Originally Posted by odln018
3) How can I get rid of "Submitted by", Date, hits, size, display order when viewing entries?

You can get rid of several of these by changing the permissions (LDM/Admin/Permissions)

"Submitted by" - take away can_view_names permission
hits - take away can_view_hits permission
display order - take away can_set_display_order permission

For Date and size you would have to edit the template (VB/styles/style manager/edit templates) If you're using the standard layout (outer box with inner box on the right hand side, you would have to edit the links_linkbit template. As example, I attach a modified version of the links_linkbit template without the right nahd box.

Boofo 04-24-2006 10:38 PM

I am getting this error when I try to add an image that is jpg for the link. I have the size set at 100. Any ideas what might be causing this or what I might be doing wrong? I am using the latest version.

Quote:

<br /><strong>Warning</strong>: imagejpeg(): supplied argument is not a valid Image resource in <strong>/local_resize.php</strong> on line <strong>62</strong><br /><br /><strong>Warning</strong>: imagedestroy(): supplied argument is not a valid Image resource in <strong>/local_resize.php</strong> on line <strong>63</strong><br />

redlabour 04-25-2006 01:51 AM

Quote:

Originally Posted by AndrewD
Easiest way to be sure is simply to tell the VB product installer to uninstall then reinstall. You won't lose anything.

Hi, seems working.

But it is normal that the german Translation is still very incomplete ?

AndrewD 04-25-2006 07:46 AM

Quote:

Originally Posted by redlabour
Hi, seems working.

But it is normal that the german Translation is still very incomplete ?

I have a new German translation, very kindly completed a few days ago by dlutt, but I hadn't had a chance to upload it yet (am in the middle of a yet another business trip). It will be uploaded as a complete product xml file next weekend, when I'm back home. Or you can find his phrases file here

AndrewD 04-25-2006 07:55 AM

Quote:

Originally Posted by Boofo
I am getting this error when I try to add an image that is jpg for the link. I have the size set at 100. Any ideas what might be causing this or what I might be doing wrong? I am using the latest version.

Is there a space character or some similar in the jpg's filename. I can see a bug in the code in this situation, although I can't get it to trigger your message.

Boofo 04-25-2006 08:03 AM

Quote:

Originally Posted by AndrewD
Is there a space character or some similar in the jpg's filename. I can see a bug in the code in this situation, although I can't get it to trigger your message.

No, sir, the filename is mark.jpg. ;)

AndrewD 04-25-2006 08:09 AM

Quote:

Originally Posted by Boofo
No, sir, the filename is mark.jpg. ;)

OK, can you send me a pm with a full url to the jpg, also (if it exists) to your LDM entry showing this bug. Thanks

redlabour 04-25-2006 08:36 AM

Quote:

Originally Posted by AndrewD
I have a new German translation, very kindly completed a few days ago by dlutt, but I hadn't had a chance to upload it yet (am in the middle of a yet another business trip). It will be uploaded as a complete product xml file next weekend, when I'm back home. Or you can find his phrases file here


Thx !!! :laugh:

odln018 04-25-2006 02:36 PM

Quote:

Originally Posted by AndrewD
No problem. Perhaps the coding is too clever for its own good.



The easiest way to do this for banners is to use Vb codes e.g. the img code. For small icon images, you can try Edit Category/Display Settings/cat_icon and cat_icon_new




Usually the Links and Download group appears close to the top of the list in the left hand column of the ACP. Sometimes I've noticed that you need to close all browser windows completely and restart before VB picks up these xml files.



You can get rid of several of these by changing the permissions (LDM/Admin/Permissions)

"Submitted by" - take away can_view_names permission
hits - take away can_view_hits permission
display order - take away can_set_display_order permission

For Date and size you would have to edit the template (VB/styles/style manager/edit templates) If you're using the standard layout (outer box with inner box on the right hand side, you would have to edit the links_linkbit template. As example, I attach a modified version of the links_linkbit template without the right nahd box.


Andrew - Thank you very much! This took care of all of those concerns, I just have a final (hopefully!) two questions, and then I'll ride off into the sunset.

1) Is there a way to remove the "enlarge image" expansion button.
2) Is there a way to remove the "add to favorites" button.

Thanks in advance!

|oR|Greg 04-25-2006 05:26 PM

You can edit the template to look how you want. Here is my links_linkbit template. Feel free to use it if you like it.

Code:

<tr>
<td colspan="2">
<div style="margin-top:3px">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td width="100%">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                                <td class="tcat" align="left"><if condition="$linknew">$linknew </if>$linktypebit</td>
                                <td class="tcat" width="65%" align="left"><strong>$linkurljump <if condition="$linksize"> Size: $linksize $vbphrase[ll_kb]</if></strong></td>
                                <td class="tcat" width="35%" align="right"><if condition="$links_permissions[can_view_names]">$vbphrase[ll_submitby] <a href="member.php?u=$linkuserid">$linkusername</a> On: $linkdate</if></td>
                        </tr>
                </table>
                </td>
        </tr>
        <tr>
                <td width="100%">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                                <td class="alt1" align="center">$linkimgjump</td>
                                <td class="alt1" width="100%" align="left" valign="top"><span class="smallfont">$linkdesc</span></td>
                                <td class="alt1" width="100" align="right">
                                        <if condition="$links_permissions[can_view_hits]">
                                        <div align="center">
                                        <table cellpadding="0" cellspacing="0" border="0" width="100">
                                                <tr>
                                                        <td width="100" valign="top" class="thead" align="center">Hits/Views</td>
                                                </tr>
                                                <tr>
                                                        <td width="100" valign="top" class="tcat" align="center">$linkhits</td>
                                                </tr>
                                        </table>
                                        </div>
                                        </if>
                                </td>
                        </tr>
                </table>               
                </td>
        </tr>
        <tr>
                <td width="100%">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                                <td class="thead" align="left"><span class="smallfont">Enlarge Thumbnail $linkimgmag</span></td>
                                <td class="thead" width="85%" align="right">
                                <span class="smallfont">Favorite </span> $linkfavbit
                                <span class="smallfont">Edit </span> $linkeditbit
                                <if condition="$links_permissions[can_send_tofriend]"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" target="_blank" title="$vbphrase[ll_sendtofriend]"><span class="smallfont">Send To Friend </span> <img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if>
                                <if condition="$links_permissions[can_report_link] and $linkuserid != $bbuserinfo[userid]"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber"><span class="smallfont">Report Bad Link </span> <img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>
                                </td>
                        </tr>
                </table>
                </td>
        </tr>
</table>
</div>
</td>
</tr>


odln018 04-25-2006 05:45 PM

Quote:

Originally Posted by |oR|Greg
You can edit the template to look how you want. Here is my links_linkbit template. Feel free to use it if you like it.

Code:

<tr>
<td colspan="2">
<div style="margin-top:3px">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td width="100%">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                                <td class="tcat" align="left"><if condition="$linknew">$linknew </if>$linktypebit</td>
                                <td class="tcat" width="65%" align="left"><strong>$linkurljump <if condition="$linksize"> Size: $linksize $vbphrase[ll_kb]</if></strong></td>
                                <td class="tcat" width="35%" align="right"><if condition="$links_permissions[can_view_names]">$vbphrase[ll_submitby] <a href="member.php?u=$linkuserid">$linkusername</a> On: $linkdate</if></td>
                        </tr>
                </table>
                </td>
        </tr>
        <tr>
                <td width="100%">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                                <td class="alt1" align="center">$linkimgjump</td>
                                <td class="alt1" width="100%" align="left" valign="top"><span class="smallfont">$linkdesc</span></td>
                                <td class="alt1" width="100" align="right">
                                        <if condition="$links_permissions[can_view_hits]">
                                        <div align="center">
                                        <table cellpadding="0" cellspacing="0" border="0" width="100">
                                                <tr>
                                                        <td width="100" valign="top" class="thead" align="center">Hits/Views</td>
                                                </tr>
                                                <tr>
                                                        <td width="100" valign="top" class="tcat" align="center">$linkhits</td>
                                                </tr>
                                        </table>
                                        </div>
                                        </if>
                                </td>
                        </tr>
                </table>               
                </td>
        </tr>
        <tr>
                <td width="100%">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                                <td class="thead" align="left"><span class="smallfont">Enlarge Thumbnail $linkimgmag</span></td>
                                <td class="thead" width="85%" align="right">
                                <span class="smallfont">Favorite </span> $linkfavbit
                                <span class="smallfont">Edit </span> $linkeditbit
                                <if condition="$links_permissions[can_send_tofriend]"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" target="_blank" title="$vbphrase[ll_sendtofriend]"><span class="smallfont">Send To Friend </span> <img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if>
                                <if condition="$links_permissions[can_report_link] and $linkuserid != $bbuserinfo[userid]"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber"><span class="smallfont">Report Bad Link </span> <img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>
                                </td>
                        </tr>
                </table>
                </td>
        </tr>
</table>
</div>
</td>
</tr>



Greg -
Thank you very much! I really like the look you achieved, and I really like your vertical menu system, was that a custom hack, or something you received from a third party?

|oR|Greg 04-25-2006 05:58 PM

It's a hack for vBAdvanced. They have a tutorial where you can add blocks to any vB page. Once I installed vBA, did the tutorial, there was a Module that someone wrote for the vertical NavMenu, I rewrote it with what I wanted and how I wanted. So... I guess it's 3rd party customized. I made it's sections collapsable, and made the Forum/Home link a little smarter then the normal one people use:


Using this will generate a warning in IE on the bottom status bar that there is an error on the page, however the "error" is that I left a quote off the first table column lines (in 3 places), I did this because with the quote, it totally screws up how things look and behave, without the quote it's perfect, don't ask me why. This is the line I'm talking about (<td style="cursor:hand" class='alt1' onmouseover="this.className='alt1'" onmouseout="this.className='alt1'>) Notice that the last " is missing.
Code:


<tr>
<td class="alt2">
<span class="smallfont">


<!-- The Community -->

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr><td style="cursor:hand" class='alt1' onmouseover="this.className='alt1'" onmouseout="this.className='alt1'>
<a href="#top" onclick="return toggle_collapse('community')">
<img id="collapseimg_community" border="0" src="$stylevar[imgdir_misc]/navbits_start+.gif"/></a>&nbsp;<b>Community</b></td></tr>

<tbody id="collapseobj_community" style="$vbcollapse[collapseobj_community]">

<if condition="THIS_SCRIPT == 'adv_index'">
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'">
<td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl_q]">Forums</a></td></tr>
</if>

<if condition="THIS_SCRIPT == 'index'">
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'">
<td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[homeurl]?$session[sessionurl_q]">Home</a></td></tr>
</if>

<if condition="THIS_SCRIPT != 'adv_index' AND THIS_SCRIPT != 'index'">
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'">
<td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[homeurl]?$session[sessionurl_q]">Home</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'">
<td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl_q]">Forums</a></td></tr>
</if>


<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/calendar.php$session[sessionurl_q]">Calendar</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/faq.php$session[sessionurl_q]">F.A.Q.</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/arcade.php$session[sessionurl_q]">Arcade</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="http://www.limmac.org/vb/vbpicgallery.php?do=list">Gallery</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/local_links.php?catid=3$session[sessionurl_q]">Media</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/local_links.php?catid=5$session[sessionurl_q]">Links</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/local_links.php?catid=6$session[sessionurl_q]">Car Clubs</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="http://www.limmac.org/vb/local_links.php?catid=2">Driving Directions</a></td></tr>


</tbody>
</table>

<!-- / The Community -->


<!-- LIMMAC -->

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>
<td style="cursor:hand" class='alt1' onmouseover="this.className='alt1'" onmouseout="this.className='alt1'>
<a href="#top" onclick="return toggle_collapse('limmac')">
<img id="collapseimg_limmac" border="0" src="$stylevar[imgdir_misc]/navbits_start+.gif"/></a>&nbsp;<b>LIMMAC</b></td></tr>

<tbody id="collapseobj_limmac" style="$vbcollapse[collapseobj_limmac]">

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="http://www.limmac.org/vb/local_links.php?catid=4">LIMMAC Rides</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[homeurl]/index.php?page=events">LIMMAC Events</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[homeurl]/index.php?page=cruises">LIMMAC Cruises</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[homeurl]/index.php?page=clubinfo">LIMMAC Club Info</a></td></tr>

<!--<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="http://www.limmac.org/vb/timeslips.php?$session[sessionurl]">LIMMAC TimeSlips</a></td></tr>-->

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/local_links.php?catid=1$session[sessionurl_q]">LIMMAC Downloads</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/showgroups.php$session[sessionurl_q]" rel="nofollow">LIMMAC Members</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="http://www.limmac.org/webmail/">LIMMAC WebMail</a></td></tr>

</tbody>
</table>

<!-- / LIMMAC -->


<!-- Contact Zone -->

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr><td style="cursor:hand" class='alt1' onmouseover="this.className='alt1'" onmouseout="this.className='alt1'>
<a href="#top" onclick="return toggle_collapse('czone')">
<img id="collapseimg_czone" border="0" src="$stylevar[imgdir_misc]/navbits_start+.gif"/></a>&nbsp;<b>Contact Zone</b></td></tr>

<tbody id="collapseobj_czone" style="$vbcollapse[collapseobj_czone]">

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="mailto:mike98ws6@gmail.com" rel="nofollow">Contact Mike</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="mailto:limmacinfo@aol.com" rel="nofollow">Contact Ryan</a></td></tr>

<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a></td></tr>

</tbody>
</table>

<!-- / Contact Zone -->

<!-- Administrators -->

<if condition="$show['admincplink']"> <hr size="1"/>
<table class="alt1" height="18" border="1" cellpadding="0" cellspacing="0" width="100%"><tr onmouseover="this.className='alt2'" onmouseout="this.className='alt1'"><td align="center">

<tr class="alt1">
<td align="center" class="tcat"><span id="other"><strong> <a href="$vboptions[bburl]/admincp/index.php$session[sessionurl_q]" target="_blank"> $vbphrase[admin]</a></strong></span></td></tr>
<!-- / Administrators -->
</td>
          </tr>
</table>

</if>


</span>
</td>
</tr>


Boofo 04-25-2006 06:11 PM

Quote:

Originally Posted by |oR|Greg
You can edit the template to look how you want. Here is my links_linkbit template. Feel free to use it if you like it.

Code:

<tr>
<td colspan="2">
<div style="margin-top:3px">
 
<table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
        <td width="100%">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td class="tcat" align="left"><if condition="$linknew">$linknew </if>$linktypebit</td>
                <td class="tcat" width="65%" align="left"><strong>$linkurljump <if condition="$linksize"> Size: $linksize $vbphrase[ll_kb]</if></strong></td>
                <td class="tcat" width="35%" align="right"><if condition="$links_permissions[can_view_names]">$vbphrase[ll_submitby] <a href="member.php?u=$linkuserid">$linkusername</a> On: $linkdate</if></td>
            </tr>
        </table>
        </td>
    </tr>
    <tr>
        <td width="100%">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td class="alt1" align="center">$linkimgjump</td>
                <td class="alt1" width="100%" align="left" valign="top"><span class="smallfont">$linkdesc</span></td>
                <td class="alt1" width="100" align="right">
                    <if condition="$links_permissions[can_view_hits]">
                    <div align="center">
                    <table cellpadding="0" cellspacing="0" border="0" width="100">
                        <tr>
                            <td width="100" valign="top" class="thead" align="center">Hits/Views</td>
                        </tr>
                        <tr>
                            <td width="100" valign="top" class="tcat" align="center">$linkhits</td>
                        </tr>
                    </table>
                    </div>
                    </if>
                </td>
            </tr>
        </table>       
        </td>
    </tr>
    <tr>
        <td width="100%">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td class="thead" align="left"><span class="smallfont">Enlarge Thumbnail $linkimgmag</span></td>
                <td class="thead" width="85%" align="right">
                <span class="smallfont">Favorite </span> $linkfavbit
                <span class="smallfont">Edit </span> $linkeditbit
                <if condition="$links_permissions[can_send_tofriend]"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" target="_blank" title="$vbphrase[ll_sendtofriend]"><span class="smallfont">Send To Friend </span> <img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if>
                <if condition="$links_permissions[can_report_link] and $linkuserid != $bbuserinfo[userid]"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber"><span class="smallfont">Report Bad Link </span> <img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>
                </td>
            </tr>
        </table>
        </td>
    </tr>
</table>
</div>
</td>
</tr>


What size do you have your image thumbnails set to?

AndrewD 04-25-2006 10:01 PM

Quote:

Originally Posted by odln018
1) Is there a way to remove the "enlarge image" expansion button.

This needs a template edit. Kill the lines in the linkbit template that read as follows:
Code:

<br />
<span class="smallfont">$linkimgmag</span>

Quote:

Originally Posted by odln018
2) Is there a way to remove the "add to favorites" button.

Remove the can_mark_link permission for all usergroups

shiva 04-26-2006 03:09 AM

Quote:

Originally Posted by |oR|Greg
You can edit the template to look how you want. Here is my links_linkbit template. Feel free to use it if you like it.

Nice look, but I noticed that if you don't have a thumbnail image, it still shows the "Enlarge Thumbnail" and the icon for it. Could you post the code to fix that.

I also noticed that it didn't align to the top, but that is easy to fix. :)


All times are GMT. The time now is 01:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03506 seconds
  • Memory Usage 1,979KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (30)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete