vReportBoard Mod

Started by Valodim, August 21, 2006, 07:58:17 PM

Previous topic - Next topic

Rocketta

I get this error when I try to upload

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I had 1.1.1 and it wouldn't install and now I upgraded to 1.1.2 and it still won't install. :(

Gorm

Quote from: Rocketta on February 20, 2007, 08:06:15 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I have the same problem (with 1.1.2)

/Johan


Mr. Ksoft

If you just edit package_info.xml and replace the instances of 1.1.1 with 1.1.2, it works fine.

Now, I have a question: The forum I want to use this one uses the Babylon theme still.  What modifications would I make to get it to work on there?  I don't really know anything about themes to figure it out myself.

HecKel

when is released the VReportBoard Mod to SMF 1.1.2? I really need this mod :(

Is this mod a candidate to new feature on the next SMF version?

HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Valodim

#104
Quote from: Mr. Ksoft on February 24, 2007, 10:20:53 AM
If you just edit package_info.xml and replace the instances of 1.1.1 with 1.1.2, it works fine.

thanks for the info. updated package. :)

Quote from: RoarinRow on February 17, 2007, 10:56:29 AM
Anyone know how to fix this.  It happens when someone reports an issue:

8: Undefined offset: 0
File: /forum/Sources/SendTopic.php
Line: 306

could you paste line 306 of your sendtopic.php? can't seem to find any line in the code where that error may occur? :(

Quote
Now, I have a question: The forum I want to use this one uses the Babylon theme still.  What modifications would I make to get it to work on there?  I don't really know anything about themes to figure it out myself.

added babylon and classic template modifications. the links are lacking images, though :P

Shaman666

I get this error:

http://www.xxxxx.com/index.php?action=reporttm;topic=277.0 [nofollow]
8: Undefined offset: 0
File: /home/xxxxxxxxx/public_html/Sources/SendTopic.php
Line: 306

dexx

Hi there Mod is working perfectly except for one thing:

I'm using a theme from RocketThemes.com (Versatility 2) and no Solve/Unsolve text or image links appear anywhere (main board or in the actual thread beside lock/unlock)

Can you please (in newbie terms) explain how I alter the code to add the ability to do so?

Thank you and great mod! Just what I was looking for!

Valodim

that depends on the theme. you have to edit Display.template.php, and add the "solve" action to the mod action buttons. for example, in the default template there is an array with lines like this
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),

to which you have to add an element like this:

'solve' => array('test' => 'can_solve', 'text' => 'report_solve', 'image' => 'solve.gif', 'lang' => true, 'url' => $scripturl . '?action=solve;topic=' . $context['current_topic']),


in the classic templates they are not in an array, but in a format similar to this

if ($context['can_solve'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=solve;topic=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/solve.gif" alt="' . $txt['report_solve'] . '" border="0" />' : $txt['report_solve']) . '</a>';


themes are different, so there is no general way to do it. basically, add a link like this
<a href="', $scripturl, '?action=solve;topic=', $context['current_topic'], '">Solve</a>
somewhere in the Display template.

dexx

Hey, thanks for the quick reply!

Here's what the mod button code for my template looks like:

   if ($context['can_move'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_move.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';

   if ($context['can_delete'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . $txt[162] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_rem.gif" alt="' . $txt[63] . '" border="0" />' : $txt[63]) . '</a>';

   if ($context['can_lock'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_lock.gif" alt="' . (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280']) . '" border="0" />' : (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280'])) . '</a>';

   if ($context['can_sticky'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_sticky.gif" alt="' . (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278']) . '" border="0" />' : (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278'])) . '</a>';
   if ($context['can_merge'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/merge.gif" alt="' . $txt['smf252'] . '" border="0" />' : $txt['smf252']) . '</a>';
   if ($context['can_remove_poll'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . '" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_remove_poll.gif" alt="' . $txt['poll_remove'] . '" border="0" />' : $txt['poll_remove']) . '</a>';

   if ($context['calendar_post'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/linktocal.gif" alt="' . $txt['calendar37'] . '" border="0" />' : $txt['calendar37']) . '</a>';

   if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
      $moderationButtons[] = $settings['use_image_buttons'] ? '<input type="image" name="submit" id="quickmodSubmit" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete_selected.gif" alt="' . $txt['quickmod_delete_selected'] . '" />' : '<a href="javascript:document.forms.quickModForm.submit();" id="quickmodSubmit">' . $txt['quickmod_delete_selected'] . '</a>';


But when I inserted:


if ($context['can_solve'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=solve;topic=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/solve.gif" alt="' . $txt['report_solve'] . '" border="0" />' : $txt['report_solve']) . '</a>';


A) No Image came up just text saying Solve/Unsolve (which I believe is normal based on Mod description)

but

B) When I click the link, it takes me back to the forum index. The property for the link shows this as the url:

http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,solve/topic,14/

While the other buttons show this as their links:

Lock/Unlock-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,lock/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/

Remove Topic-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,removetopic2/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/

Sticky-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,sticky/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/


Any ideas?

RoarinRow

Quote from: Valodim on February 28, 2007, 02:38:10 PM
Quote from: Mr. Ksoft on February 24, 2007, 10:20:53 AM
If you just edit package_info.xml and replace the instances of 1.1.1 with 1.1.2, it works fine.

thanks for the info. updated package. :)

Quote from: RoarinRow on February 17, 2007, 10:56:29 AM
Anyone know how to fix this.  It happens when someone reports an issue:

8: Undefined offset: 0
File: /forum/Sources/SendTopic.php
Line: 306

could you paste line 306 of your sendtopic.php? can't seem to find any line in the code where that error may occur? :(

Quote
Now, I have a question: The forum I want to use this one uses the Babylon theme still.  What modifications would I make to get it to work on there?  I don't really know anything about themes to figure it out myself.

added babylon and classic template modifications. the links are lacking images, though :P

This is my line 305 and 306:

   if(mysql_num_rows($query) > 0)
                list($countPosts) = mysql_fetch_assoc($query);

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Shaman666

Quote from: Shaman666 on March 04, 2007, 07:39:52 AM
I get this error:

http://www.xxxxx.com/index.php?action=reporttm;topic=277.0 [nofollow]
8: Undefined offset: 0
File: /home/xxxxxxxxx/public_html/Sources/SendTopic.php
Line: 306
Can someone help me with this?

RoarinRow

Quote from: Shaman666 on March 08, 2007, 10:35:53 AM
Quote from: Shaman666 on March 04, 2007, 07:39:52 AM
I get this error:

http://www.xxxxx.com/index.php?action=reporttm;topic=277.0
8: Undefined offset: 0
File: /home/xxxxxxxxx/public_html/Sources/SendTopic.php
Line: 306
Can someone help me with this?

that's the same exact error message I'm getting and my line 306 is in post above.

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Valodim

#112
got it. just replace the mysql_fetch_assoc with mysql_fetch_row.

updated mod, no version number incremental though :)

\\ edit

dexx: sorry, can't find anything wrong there. maybe your index.php was not properly modified by the mod? make sure there's an action like

'solve' => array('SendTopic.php', 'SolveTopic'),

in it.

RoarinRow

#113
Quote from: Valodim on March 08, 2007, 04:45:22 PM
got it. just replace the mysql_fetch_assoc with mysql_fetch_row.

updated mod, no version number incremental though :)

cool, i'll just make my change manually.  thank you!

mine will now read - list($countPosts) = mysql_fetch_row($query);  


edit - that worked!

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Valodim

yep, that should do the trick :)

RoarinRow


SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Matthew Schenker

Excellent modification!  Thanks for creating it!

I was getting a lot of e-mails for reported posts, and I was having trouble keeping track of them.  Now I have a way to organize reported posts.

korby

How can I install the mod manualy? (sorry if already explained, guess I mised it).
Thanks.

Valodim

uh... follow the steps in the mod file? :P

babjusi

Quote from: korby on March 11, 2007, 10:25:16 AM
How can I install the mod manualy? (sorry if already explained, guess I mised it).
Thanks.

Have a look here korby, hope this helps

http://docs.simplemachines.org/index.php?topic=402

Advertisement: