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 Home Enhancements - User's Social Groups on Forum Home (like forumlist, fully templated) (https://vborg.vbsupport.ru/showthread.php?t=203721)

cellarius 04-21-2009 04:22 PM

Quote:

Originally Posted by Revan (Post 1794442)
I believe these changes, especially if added as options, will be beneficial for those like me, who prefer to have the Social Groups list exactly the same way as any other forum category :)

As you can see, some of them made it into the new release, some did not. The decision to put the groups into an extra block was made to have some distinction - they are not the same as any other forum, after all. Who wishs to treat them like you do can follow your example - that's what templates are for :)

Revan 04-21-2009 05:58 PM

Well I'm most pleased that the .png change made it into the mod - template edits, I can deal with, but remembering code changes would be a hassle ;)
Nice going on the read marking change =D

Updating now :)


EDIT: Nevermind, the .png setting is global when it should be per-skin, like I put in my templates. I still need to edit the code to produce the wanted effect :(
Best way to do this would be to define the result of the AdminCP option in the template, rather than the code, so that a forum could set their default (if the majority of skins uses gifs, they use gif extension in the option, and vice versa), but still allow us to customise the extension per-skin.
Hopefully that made sense XD

cellarius 04-21-2009 06:25 PM

1 Attachment(s)
Hi, try this one.
I started to change this right after your first edit, but I guess I just had the same idea ;) I hope this will work for you.

I updated the product .zip accordingly.

blackenizer 04-21-2009 06:31 PM

When I click on the option

groups user is a member of
The forum page does not come up.

but it works if I select
groups user is subscribed to

cellarius 04-21-2009 06:37 PM

Quote:

Originally Posted by blackenizer (Post 1796192)
When I click on the option

groups user is a member of
The forum page does not come up.

but it works if I select
groups user is subscribed to

I cannot reproduce this - I myself use it with the "member of"-option only, without problems both on my test and my life-board.

Revan 04-21-2009 07:57 PM

Working like a charm now, thanks mate :D

cellarius 04-21-2009 08:06 PM

Quote:

Originally Posted by Revan (Post 1796263)
Working like a charm now, thanks mate :D

Good to hear :cool::up:

redlabour 04-21-2009 08:20 PM

Please use the Update-Mail Function. You have 120 Installs but only a few Downloads every Update. ;)

redlabour 04-21-2009 08:38 PM

BUG after Updating shown at Top of Forumhome/Header:

Warnung: Invalid argument supplied for foreach() in [path]/index.php(67) : eval()'d code (Zeile 458)

cellarius 04-21-2009 09:12 PM

Uh - I don't get that error... on neither of my boards. Since there's no line 458 in the plugin, I do not know exactly which of the two foreach statements in the plugin might be responsible. Since this only happens after upgrade, probably the newly added ;) Can't see what might be causing it at the moment.

Please try the following: in the plugin add
Code:

$array_discussionread = array();
before
Code:

while ($array = $db->fetch_array($result_discussionread))

Are you using PHP 4 or PHP 5?

If the above does not fix it, please try to replace
Code:

foreach ($array_discussionread[$cel_groups['groupid']] as $discussions)
with
Code:

foreach ((array) $array_discussionread[$cel_groups['groupid']] as $discussions)

redlabour 04-22-2009 03:21 PM

Quote:

Originally Posted by cellarius (Post 1796314)
Are you using PHP 4 or PHP 5?

If the above does not fix it, please try to replace
Code:

foreach ($array_discussionread[$cel_groups['groupid']] as $discussions)
with
Code:

foreach ((array) $array_discussionread[$cel_groups['groupid']] as $discussions)

PHP5 - the second Hint works now! :)

cellarius 04-22-2009 03:35 PM

Good to know. Will include this into the package and then send an upgrade notification ;)

redlabour 04-22-2009 04:50 PM

Awesome! :)

Revan 04-22-2009 06:40 PM

It's good practice to always init your arrays like that, and if you are foreach'ing variables you didn't have complete control over, you should either typecast like in your second fix, or check "if (!is_array($arr)) { $arr = array(); }" :)
Reason is, if a database returns no rows, it doesn't create any arrays you manipulate inside a while() result iterator.

cellarius 04-22-2009 08:55 PM

Yep, just learned that ;)

Namaless 04-26-2009 04:28 PM

Italian Language Pack: https://vborg.vbsupport.ru/showthread.php?t=212226

Thanks for this MOD.

BigPete7978 04-28-2009 03:42 AM

Is there any reason that the small images wouldn't show up (and just appear as broken images)? I already uploaded them to both my images folder and the individual style folder. I don't get what could be causing this.

cellarius 04-28-2009 04:28 AM

You mean the icons to start a new discussion etc.? There's only one reason for this: they have not been uploaded to the correct folder. Do you use a custom style with different folders? This mod always looks for the buttons in the folder of the skin as set in AdminCP. So probably you have to upload them to that folder, too.

BigPete7978 04-28-2009 03:30 PM

Quote:

Originally Posted by cellarius (Post 1800332)
You mean the icons to start a new discussion etc.? There's only one reason for this: they have not been uploaded to the correct folder. Do you use a custom style with different folders? This mod always looks for the buttons in the folder of the skin as set in AdminCP. So probably you have to upload them to that folder, too.

Yes I have a custom folder. But I uploaded them to the correct path there as well. :confused:

BigPete7978 04-28-2009 03:35 PM

Nvm figured it out. :-P

Renada 05-21-2009 03:31 PM

1 Attachment(s)
Hi cellarius,

I wonder if you could help - I've just installed this and get the error in the attached image - all the code shows up at the top of the page.

Thanks in advance,
Renada :)

Oblivion Knight 05-21-2009 04:36 PM

Quote:

Originally Posted by Renada (Post 1814694)
Hi cellarius,

I wonder if you could help - I've just installed this and get the error in the attached image - all the code shows up at the top of the page.

Thanks in advance,
Renada :)

I had that same problem, you need to edit one of the plugins.. More specifically, the one on the hook forumhome_start.

Find and delete this at the very top and at the very bottom of the plugin:
Code:

?><?
Save, and you're done.

Renada 05-21-2009 05:32 PM

Quote:

Originally Posted by Oblivion Knight (Post 1814727)
I had that same problem, you need to edit one of the plugins.. More specifically, the one on the hook forumhome_start.

Find and delete this at the very top and at the very bottom of the plugin:
Code:

?><?
Save, and you're done.


Thank you so much, that fixed the problem :)

One more thing, slightly off topic though. I want to add a block of text to the "Social Groups" main page - do you have any idea which template I need to edit? I've tried several and it doesn't appear to show up anywhere.

Thanks again :)
Renada

trotskid 05-21-2009 10:24 PM

Very nice addon, thanks!

Where can I fix the width of these columns in order to align with the rest of the forum?

http://img211.imageshack.us/img211/7291/groupforum.jpg

Greetings

cellarius 05-22-2009 02:49 PM

Adapt template forumhome_cel_social_groups to your needs - just like you did with forumhome

trotskid 05-22-2009 05:44 PM

Thank you very much ;)

ryancooper 06-07-2009 11:52 AM

is there a way someone can put this in a standalone php file so I can call it in my ajax tabs?

Does that mane cents? LOL :D

trotskid 06-12-2009 04:29 PM

1 Attachment(s)
Hi. The title of groups appears in normal style but I would like to show it with bold text like the titles for forums on forumhome. Where can I modify that?

Thanks

Oblivion Knight 06-12-2009 04:55 PM

Quote:

Originally Posted by trotskid (Post 1828379)
Hi. The title of groups appears in normal style but I would like to show it with bold text like the titles for forums on forumhome. Where can I modify that?

Thanks

In the template forumhome_cel_social_groups_groupbit, find:
HTML Code:

        <a href="group.php?$session[sessionurl]groupid=$cel_groups[groupid]" style="$cel_sgfh_css">$cel_groups[name]</a>

Replace with:
HTML Code:

        <a href="group.php?$session[sessionurl]groupid=$cel_groups[groupid]"><strong>$cel_groups[name]</strong></a>

cellarius 06-12-2009 10:29 PM

No need to edit the template. Just apply css to the grouptitle in the options for this mod in AdminCP.

trotskid 06-13-2009 04:50 AM

Thanks to both.

Where can I find that exactly, cellarius?

trotskid 06-13-2009 05:11 AM

1 Attachment(s)
Another question. I?ve seen that the bar of title and description respect to the forums are reversed. It?s possible to fix this?

Greetings ;)

cellarius 06-13-2009 07:29 AM

Forget what I wrote - the css is for unread groups titles only. I misunderstood your questioin. You'll have to do the template edit.

Your second question: The standard setup for Forumhome is the way that this mod uses (see vbulletin.com). You can change that by editing the templates of this mod along the same lines you edited your forums display.

ragtek 06-13-2009 07:50 AM

yea
had also the idea some days ago, good that i've found it here instead of spending time with coding

trotskid 06-13-2009 09:49 AM

Quote:

Originally Posted by cellarius (Post 1828837)
Your second question: The standard setup for Forumhome is the way that this mod uses (see vbulletin.com). You can change that by editing the templates of this mod along the same lines you edited your forums display.

I can?t understand. What?s the standard setup? All of my styles (5), including the default, shows like the screenshot, and I have not made any change on forumhome.

cellarius 06-13-2009 10:26 AM

As I said: Look at vbulletin.com. They are running the standard style, and there the lines for the forums you pointed out are arranged in the way that this mod does. Since your style is different, it has to be modified. To adapt this, you'll have to adapt the templates for this mod.

cad2go 07-03-2009 11:30 AM

Works a treat. Thanks.

l_amhed 07-06-2009 08:31 PM

Buongiorno cellarius.

First, thanks for your hack which is working very well.
Then, a little question, I'm using SocialForums :
https://vborg.vbsupport.ru/misc.php?...socialforums38

I'd like to have the last post of the social forum appearing in the cell instead of the last discussion, can you help me ?

Thanks !

cellarius 07-06-2009 09:06 PM

Sorry, since I do not use (and do not know) this mod, I really can't, sorry.

l_amhed 07-06-2009 09:39 PM

Owwww too bad .... But thank you again for this very usefull hack.


All times are GMT. The time now is 12:54 AM.

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.02218 seconds
  • Memory Usage 1,824KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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