vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - Article Forums (https://vborg.vbsupport.ru/showthread.php?t=211638)

Omar Al-Ansari 06-25-2009 09:31 PM

Quote:

Originally Posted by bananalive (Post 1837312)
View page source and look for line this this:

HTML Code:

<script type="text/javascript" src="clientscript/vbulletin_menu.js?v=382"></script>
this is the javascript file for drop down menus. check it is pointing to the correct location.

Thanks bananlive

in navbar I had to add

Code:

$vboptions[bburl]/
before

Code:

clientscript/vbulletin_menu.js
and the rest of the .js files

clientscript/vbulletin_global.js
connection-min.js
yahoo-dom-event.js

dfc005 06-25-2009 09:41 PM

Quote:

Originally Posted by bananalive (Post 1837136)
This data is not stored by vbulletin

True, but then vB doesn't allow Article Forums by default either. Thought it might be something you could include. I don't think I'd be the only one who would use it.

valendono 06-26-2009 03:55 AM

any issue if it doesn't work with vs-hide thanks button ? because I got this issue

bananalive 06-26-2009 09:55 AM

Quote:

Originally Posted by skooby (Post 1837378)
Thanks for the quick response. When I change the option to make the thumbnails all fixed though, it cuts off the images (since I've made the images 200 x 200 instead of 100 x 100 in the template fix you gave me).

Is there anyway to have it so I can make the images a bit larger, and also have them align without cutting off the image? Sorry for my lack of PHP and thanks again for the help.

See attached for a screen shot. 01 is with the fixed width off, and 02 is with the fixed width on.

Thanks!

Open articles.php

Find
PHP Code:

$thumbdivstyle "text-align: center; width: ".$vbulletin->options['attachthumbssize']."px;"

Replace
PHP Code:

$thumbdivstyle "text-align: center; width: 120px;"


bananalive 06-26-2009 10:00 AM

Quote:

Originally Posted by Omar Al-Ansari (Post 1837414)
Thanks bananlive

in navbar I had to add

Code:

$vboptions[bburl]/
before

Code:

clientscript/vbulletin_menu.js
and the rest of the .js files

clientscript/vbulletin_global.js
connection-min.js
yahoo-dom-event.js

If you view page source is the $vboptions[bburl] being parsed properly into your vbulletin url? If it is then it should be working fine.

Magz 06-26-2009 10:16 AM

Hi,

Installed and working a treat on my site, however, ive just tried to add a new forum to my site, and am getting this database error.

MySQL Error : Unknown column 'articleforum' in 'field list'

Ive tried editing other forums, and get the same database error message.

Any ideas

bananalive 06-26-2009 10:25 AM

1 Attachment(s)
Quote:

Originally Posted by Magz (Post 1837715)
Hi,

Installed and working a treat on my site, however, ive just tried to add a new forum to my site, and am getting this database error.

MySQL Error : Unknown column 'articleforum' in 'field list'

Ive tried editing other forums, and get the same database error message.

Any ideas

From what you describe the disabled plugins in the mod have been enabled.

Import attached file

Magz 06-26-2009 10:48 AM

Thanks, that indeed sorted it.

skooby 06-26-2009 11:23 AM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 1837707)
Open articles.php

Find
PHP Code:

$thumbdivstyle "text-align: center; width: ".$vbulletin->options['attachthumbssize']."px;"

Replace
PHP Code:

$thumbdivstyle "text-align: center; width: 120px;"


Thanks for the response. This seems to work in both Firefox and IE, but only Firefox is it showing the increased thumbnail size, not IE (using IE 8). The first attachment is Firefox, the second is IE.

Also, in the CMPS (I posted this in the other thread but not sure if you are checking), the CMPS is only showing 25 words even though I made the changes to show 200 words (even went as high as 1000). It takes affect in articles.php, but not in CMPS. This is happening in both browsers. Also tried to go to "edit module" and make the switch there, but same thing.

Thanks again.. I owe you a beer.

nohuhu 06-26-2009 07:34 PM

bananalive,

any news regarding my feature requests? sorry for bugging you but i really think these would be very beneficial and also i'd like to know what you think about them. :)

Budweiser 06-27-2009 03:29 AM

1 Attachment(s)
I have a suggestion on the layout of the articles themselves.

On the right under the posters name how about having an invisible border so that space directly beneath can be used for advertising space.

Any way to integrate a word wrap around the photo's too?

Thnx, Kev

PS: Bananalive has got to be overwhelmed with all of the requests and suggestions... :eek:

smirkley 06-27-2009 05:15 AM

No requests,...

just a simple thanks.

Omar Al-Ansari 06-27-2009 09:59 AM

Hi,

I am back again :)

just a quick question .. is there a way to show the categories list in a dropdown menu rather than how it is showing now?

thanks again

Bounce 06-27-2009 05:28 PM

Hi,

nice mod, any way to change the "article" wording to your own custom one?

thanks

Omar Al-Ansari 06-28-2009 12:33 PM

Hello,

Ok so I have no experience in coding and I have copied a code that posts threads in to a specific forum and played with it to use it as a forum jump dropdown menu.

Now the only issue I am facing is to get it showing for unregistered users. I would appreciate the help if someone could explain it to me and remove anything that is not needed in it


HTML Code:

<form action="{$vbulletin->options[bburl]}/forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="showforum" />
<div style="width: 100px; height: 1px; padding: 0px; margin: 0px;"></div>
<div align="right" style="padding:$stylevar[cellpadding]px 0px $stylevar[cellpadding]px 0px;"><fieldset class="fieldset">
<legend>$vbphrase[go]</legend>
<div style="padding: 0px 0px $stylevar[cellpadding]px 0px;">                               
<div><label for="sel_f">$vbphrase[category]</label></div>
                                <select name="f" id="sel_f">
                                        $f_options
                                </select></div>
<div style="text-align:center;"><input type="submit" class="button" value="$vbphrase[go]" /></div>

</fieldset></div>
</form>


Regards,
:)

Omar Al-Ansari 06-28-2009 02:44 PM

Quote:

Originally Posted by Omar Al-Ansari (Post 1838806)
Hello,

Ok so I have no experience in coding and I have copied a code that posts threads in to a specific forum and played with it to use it as a forum jump dropdown menu.

Now the only issue I am facing is to get it showing for unregistered users. I would appreciate the help if someone could explain it to me and remove anything that is not needed in it


HTML Code:

<form action="{$vbulletin->options[bburl]}/forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="showforum" />
<div style="width: 100px; height: 1px; padding: 0px; margin: 0px;"></div>
<div align="right" style="padding:$stylevar[cellpadding]px 0px $stylevar[cellpadding]px 0px;"><fieldset class="fieldset">
<legend>$vbphrase[go]</legend>
<div style="padding: 0px 0px $stylevar[cellpadding]px 0px;">                               
<div><label for="sel_f">$vbphrase[category]</label></div>
                                <select name="f" id="sel_f">
                                        $f_options
                                </select></div>
<div style="text-align:center;"><input type="submit" class="button" value="$vbphrase[go]" /></div>

</fieldset></div>
</form>


Regards,
:)

That would be nice or at least to show only the forum and if you click on it

you go to the forum and it shows the sub-forums

Example

- Articles forum
- - Computers
- - Internet
- - Cellphones
- - - Nokia
- - - Samsung
- - - iPhones

When you are in the "Articles Forum" you can only see

- - Computers
- - Internet
- - Cellphones

Then you click on "Cellphones" you would only see

- - - Nokia
- - - Samsung
- - - iPhones

That would be very nice :)

snoopy5 06-28-2009 05:10 PM

Hi

could you please post in the description of your mod, what you did change with the latest release in June and why?

Is it necessary to upgrade?

bananalive 06-28-2009 05:38 PM

Quote:

Originally Posted by skooby (Post 1837747)
Thanks for the response. This seems to work in both Firefox and IE, but only Firefox is it showing the increased thumbnail size, not IE (using IE 8). The first attachment is Firefox, the second is IE.

Also, in the CMPS (I posted this in the other thread but not sure if you are checking), the CMPS is only showing 25 words even though I made the changes to show 200 words (even went as high as 1000). It takes affect in articles.php, but not in CMPS. This is happening in both browsers. Also tried to go to "edit module" and make the switch there, but same thing.

Thanks again.. I owe you a beer.

In the same template: af_articlebit
Find
HTML Code:

width: expression(this.width > 100 ? 100: true);
Replace with
HTML Code:

width: expression(this.width > 120 ? 120: true);
I had a quick look into the word limit in cmps but couldn't work out why it wasn't working, i'll have to have another look.

bananalive 06-28-2009 05:40 PM

Quote:

Originally Posted by nohuhu (Post 1838050)
bananalive,

any news regarding my feature requests? sorry for bugging you but i really think these would be very beneficial and also i'd like to know what you think about them. :)

I think what you are requesting is a different modification really.

bananalive 06-28-2009 05:42 PM

Quote:

Originally Posted by Budweiser (Post 1838214)
I have a suggestion on the layout of the articles themselves.

On the right under the posters name how about having an invisible border so that space directly beneath can be used for advertising space.

Any way to integrate a word wrap around the photo's too?

Thnx, Kev

PS: Bananalive has got to be overwhelmed with all of the requests and suggestions... :eek:

You could use custom bbcode to do image/text wrap.

Edit template af_firstpost to add advertising space.

bananalive 06-28-2009 05:43 PM

Quote:

Originally Posted by Omar Al-Ansari (Post 1838344)
Hi,

I am back again :)

just a quick question .. is there a way to show the categories list in a dropdown menu rather than how it is showing now?

thanks again

No :eek:

bananalive 06-28-2009 05:45 PM

Quote:

Originally Posted by hIBEES (Post 1838499)
Hi,

nice mod, any way to change the "article" wording to your own custom one?

thanks

Yes, use the AdminCP phrase manager to change the phrases which contain articles

bananalive 06-28-2009 05:46 PM

Quote:

Originally Posted by Omar Al-Ansari (Post 1838806)
Hello,

Ok so I have no experience in coding and I have copied a code that posts threads in to a specific forum and played with it to use it as a forum jump dropdown menu.

Now the only issue I am facing is to get it showing for unregistered users. I would appreciate the help if someone could explain it to me and remove anything that is not needed in it


HTML Code:

<form action="{$vbulletin->options[bburl]}/forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="showforum" />
<div style="width: 100px; height: 1px; padding: 0px; margin: 0px;"></div>
<div align="right" style="padding:$stylevar[cellpadding]px 0px $stylevar[cellpadding]px 0px;"><fieldset class="fieldset">
<legend>$vbphrase[go]</legend>
<div style="padding: 0px 0px $stylevar[cellpadding]px 0px;">                               
<div><label for="sel_f">$vbphrase[category]</label></div>
                                <select name="f" id="sel_f">
                                        $f_options
                                </select></div>
<div style="text-align:center;"><input type="submit" class="button" value="$vbphrase[go]" /></div>

</fieldset></div>
</form>


Regards,
:)

It will display for those with permission to post. so check their usergroup forum permission to post new threads in article forum.

bananalive 06-28-2009 05:47 PM

Quote:

Originally Posted by snoopy5 (Post 1838968)
Hi

could you please post in the description of your mod, what you did change with the latest release in June and why?

Is it necessary to upgrade?

In the first post at the top there is a link to the version history.

If you are happy with your current version then there is no need to upgrade.

Omar Al-Ansari 06-28-2009 05:56 PM

Quote:

Originally Posted by bananalive (Post 1839006)
It will display for those with permission to post. so check their usergroup forum permission to post new threads in article forum.

Is there a way to have them to use this code to jump from one forum to another?

I wouldn't like to have unregistered users able to post in the Article.

sorry I am just trying to figure something out to sort this thing as I am using the Mod to be the main forum which could have over 50 forums and subforums and it does not look good with the list being that long. I have plans to extend this list to be a lot more than that number of forums.

:o

bananalive 06-29-2009 07:46 AM

Quote:

Originally Posted by Omar Al-Ansari (Post 1839011)
Is there a way to have them to use this code to jump from one forum to another?

I wouldn't like to have unregistered users able to post in the Article.

sorry I am just trying to figure something out to sort this thing as I am using the Mod to be the main forum which could have over 50 forums and subforums and it does not look good with the list being that long. I have plans to extend this list to be a lot more than that number of forums.

:o

You'll need to edit template: af_catbit making each category an <option> and then use your above code.

Omar Al-Ansari 06-29-2009 09:30 AM

Quote:

Originally Posted by bananalive (Post 1839408)
You'll need to edit template: af_catbit making each category an <option> and then use your above code.

an example of the <option> would be great :D

examples for dummies :D

skooby 06-29-2009 02:33 PM

Quote:

Originally Posted by bananalive (Post 1838999)
In the same template: af_articlebit
Find
HTML Code:

width: expression(this.width > 100 ? 100: true);
Replace with
HTML Code:

width: expression(this.width > 120 ? 120: true);
I had a quick look into the word limit in cmps but couldn't work out why it wasn't working, i'll have to have another look.

Thank You! I'm still having the CMPS issue but everything else is working wonderfully!

Merjawy 06-29-2009 09:05 PM

I too having problems with size of preview.. If I set it to 0 the it will post all of it without attachment. any other numbers (1- / 1 to 100000) will only show around 25 words or so with attachment..

Also, enabling BBCode option makes the page go all over the place

I know you'll have to click the article title to read more.. can you add [Read Mode] to it please?

Thanks

rabidkevin 07-01-2009 06:41 PM

I am getting a javascript error when I view an article. This doesn't happen on any other page of my forum or vb advanced or the 5 other major addons I have.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 1 Jul 2009 19:41:04 UTC

Message: 'this.controlobj' is null or not an object
Line: 11
Char: 1384
Code: 0
URI: http://www.eternalbeats.net/forums/c..._menu.js?v=382

urdu 07-01-2009 11:42 PM

Quote:

Originally Posted by Merjawy (Post 1839828)
I too having problems with size of preview.. If I set it to 0 the it will post all of it without attachment. any other numbers (1- / 1 to 100000) will only show around 25 words or so with attachment..

Also, enabling BBCode option makes the page go all over the place

I know you'll have to click the article title to read more.. can you add [Read Mode] to it please?


Thanks

same here !

CLSSY56 07-02-2009 04:21 PM

This works great.

Is there a way to get a thread building template so there is a standard on how every article looks?

How can you change the post originator information to go across the top instead of down the right side? There is a text wrap there and looks funny if you center a few pics to start off the thread.

skooby 07-03-2009 04:01 AM

2 Questions:

1) Is it possible to have all of the images that are grabbed from the post and displayed in the articles.php file to be the same size. Basically, no matter the dimensions, it will resize all the images to the same size, say 200 x 200, so that they all align correctly?

2) A little off topic, but I LOVE your postbit. Is there anyway I could apply this postbit to another forum on my board, as well as the forum I use with the articles.php?

Thanks again :)

bananalive 07-03-2009 11:10 AM

Quote:

Originally Posted by Omar Al-Ansari (Post 1839439)
an example of the <option> would be great :D

examples for dummies :D

HTML Code:

<option value="$forumid">$spacing <if condition="$vbulletin->options[af_altdisplay]">$symbol</if> $foruminfo[title_clean]</option

bananalive 07-03-2009 11:22 AM

Quote:

Originally Posted by Merjawy (Post 1839828)
I too having problems with size of preview.. If I set it to 0 the it will post all of it without attachment. any other numbers (1- / 1 to 100000) will only show around 25 words or so with attachment..

Also, enabling BBCode option makes the page go all over the place

I know you'll have to click the article title to read more.. can you add [Read Mode] to it please?


Thanks

vBulletin might limit the preview length above a certain number.

The bbcode option was requested - for some it is useful but for most it is not.

Edit template af_articlebit and add text/link after $thread[preview]

bananalive 07-03-2009 11:23 AM

Quote:

Originally Posted by rabidkevin (Post 1840916)
I am getting a javascript error when I view an article. This doesn't happen on any other page of my forum or vb advanced or the 5 other major addons I have.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 1 Jul 2009 19:41:04 UTC

Message: 'this.controlobj' is null or not an object
Line: 11
Char: 1384
Code: 0
URI: http://www.eternalbeats.net/forums/c..._menu.js?v=382

What did you click to get this javascript error?

bananalive 07-03-2009 11:24 AM

Quote:

Originally Posted by CLSSY56 (Post 1841500)
This works great.

Is there a way to get a thread building template so there is a standard on how every article looks?

How can you change the post originator information to go across the top instead of down the right side? There is a text wrap there and looks funny if you center a few pics to start off the thread.

No.

Edit template: af_firstpost

The bit on the right is the userinfo and is between the following tags

<!-- user info -->
<!-- / user info -->

bananalive 07-03-2009 11:27 AM

Quote:

Originally Posted by skooby (Post 1841797)
2 Questions:

1) Is it possible to have all of the images that are grabbed from the post and displayed in the articles.php file to be the same size. Basically, no matter the dimensions, it will resize all the images to the same size, say 200 x 200, so that they all align correctly?

2) A little off topic, but I LOVE your postbit. Is there anyway I could apply this postbit to another forum on my board, as well as the forum I use with the articles.php?

Thanks again :)

Not really. Try enabling Fixed Thumbnail Width in Vbulletin Options -> Article forum Options

Not that i am aware of. You could try searching for another modification which alters postbit template per forum and then use the template af_firstpost.

valendono 07-04-2009 03:25 PM

@banana
its not work with vs-hide thanks button. :( can u help me ? thanks

rabidkevin 07-07-2009 04:17 PM

Quote:

Originally Posted by bananalive (Post 1841949)
What did you click to get this javascript error?

on any article page aka showthread

the main article page doesn't have this javascript error.

it also appears to only happen to users who are logged in. no error when logged out.


All times are GMT. The time now is 01:31 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.01949 seconds
  • Memory Usage 1,889KB
  • 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
  • (4)bbcode_code_printable
  • (9)bbcode_html_printable
  • (4)bbcode_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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